<template>
  <div class="cccc">
    <van-uploader v-model="fileList"  multiple :afterRead="afterReadUpload"/>

  </div>
</template>

<script setup>
import {useUploadProcessing} from "@/hooks/upload/useUploadProcessing";
import {upload} from '@/apis/login'

const beforeRead = (file) => {
  console.log('beforeRead', file)
  return true
}
const afterRead = (file) => {
  console.log('afterRead', file)
}

const {
  fileList,
  delUploadFile,
  afterReadUpload,
} = useUploadProcessing({
  fileType: 'image',
  bizPath: 'test',
  api:upload,
})
</script>
<style>
.container {
  height: 60vh;
  overflow: auto;
}
</style>
